﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ProcessDefinition" targetNamespace="http://tempuri.org/ProcessDefinition.xsd" xmlns:mstns="http://tempuri.org/ProcessDefinition.xsd" xmlns="http://tempuri.org/ProcessDefinition.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections />
        <Tables />
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ProcessDefinition" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="ProcessDefinition" msprop:Generator_UserDSName="ProcessDefinition">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ProcessDefinition" msprop:Generator_TableClassName="ProcessDefinitionDataTable" msprop:Generator_TableVarName="tableProcessDefinition" msprop:Generator_TablePropName="_ProcessDefinition" msprop:Generator_RowDeletingName="ProcessDefinitionRowDeleting" msprop:Generator_RowChangingName="ProcessDefinitionRowChanging" msprop:Generator_RowEvHandlerName="ProcessDefinitionRowChangeEventHandler" msprop:Generator_RowDeletedName="ProcessDefinitionRowDeleted" msprop:Generator_UserTableName="ProcessDefinition" msprop:Generator_RowChangedName="ProcessDefinitionRowChanged" msprop:Generator_RowEvArgName="ProcessDefinitionRowChangeEvent" msprop:Generator_RowClassName="ProcessDefinitionRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="DefinitionName" msprop:Generator_ColumnVarNameInTable="columnDefinitionName" msprop:Generator_ColumnPropNameInRow="DefinitionName" msprop:Generator_ColumnPropNameInTable="DefinitionNameColumn" msprop:Generator_UserColumnName="DefinitionName" type="xs:string" />
              <xs:element name="DefinitionSource" msprop:Generator_ColumnVarNameInTable="columnDefinitionSource" msprop:Generator_ColumnPropNameInRow="DefinitionSource" msprop:Generator_ColumnPropNameInTable="DefinitionSourceColumn" msprop:Generator_UserColumnName="DefinitionSource" type="xs:string" minOccurs="0" />
              <xs:element name="DefinitionStatus" msprop:Generator_ColumnVarNameInTable="columnDefinitionStatus" msprop:Generator_ColumnPropNameInRow="DefinitionStatus" msprop:Generator_ColumnPropNameInTable="DefinitionStatusColumn" msprop:Generator_UserColumnName="DefinitionStatus" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Swimlane" msprop:Generator_TableClassName="SwimlaneDataTable" msprop:Generator_TableVarName="tableSwimlane" msprop:Generator_TablePropName="Swimlane" msprop:Generator_RowDeletingName="SwimlaneRowDeleting" msprop:Generator_RowChangingName="SwimlaneRowChanging" msprop:Generator_RowEvHandlerName="SwimlaneRowChangeEventHandler" msprop:Generator_RowDeletedName="SwimlaneRowDeleted" msprop:Generator_UserTableName="Swimlane" msprop:Generator_RowChangedName="SwimlaneRowChanged" msprop:Generator_RowEvArgName="SwimlaneRowChangeEvent" msprop:Generator_RowClassName="SwimlaneRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" type="xs:string" />
              <xs:element name="SeqNo" msprop:Generator_ColumnVarNameInTable="columnSeqNo" msprop:Generator_ColumnPropNameInRow="SeqNo" msprop:Generator_ColumnPropNameInTable="SeqNoColumn" msprop:Generator_UserColumnName="SeqNo" type="xs:int" minOccurs="0" />
              <xs:element name="RuleName" msprop:Generator_ColumnVarNameInTable="columnRuleName" msprop:Generator_ColumnPropNameInRow="RuleName" msprop:Generator_ColumnPropNameInTable="RuleNameColumn" msprop:Generator_UserColumnName="RuleName" type="xs:string" minOccurs="0" />
              <xs:element name="DefinitionName" msprop:Generator_ColumnVarNameInTable="columnDefinitionName" msprop:Generator_ColumnPropNameInRow="DefinitionName" msprop:Generator_ColumnPropNameInTable="DefinitionNameColumn" msprop:Generator_UserColumnName="DefinitionName" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Rule" msprop:Generator_TableClassName="RuleDataTable" msprop:Generator_TableVarName="tableRule" msprop:Generator_TablePropName="Rule" msprop:Generator_RowDeletingName="RuleRowDeleting" msprop:Generator_RowChangingName="RuleRowChanging" msprop:Generator_RowEvHandlerName="RuleRowChangeEventHandler" msprop:Generator_RowDeletedName="RuleRowDeleted" msprop:Generator_UserTableName="Rule" msprop:Generator_RowChangedName="RuleRowChanged" msprop:Generator_RowEvArgName="RuleRowChangeEvent" msprop:Generator_RowClassName="RuleRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="RuleName" msprop:Generator_ColumnVarNameInTable="columnRuleName" msprop:Generator_ColumnPropNameInRow="RuleName" msprop:Generator_ColumnPropNameInTable="RuleNameColumn" msprop:Generator_UserColumnName="RuleName" type="xs:string" />
              <xs:element name="RuleClass" msprop:Generator_ColumnVarNameInTable="columnRuleClass" msprop:Generator_ColumnPropNameInRow="RuleClass" msprop:Generator_ColumnPropNameInTable="RuleClassColumn" msprop:Generator_UserColumnName="RuleClass" type="xs:string" minOccurs="0" />
              <xs:element name="RuleDll" msprop:Generator_ColumnVarNameInTable="columnRuleDll" msprop:Generator_ColumnPropNameInRow="RuleDll" msprop:Generator_ColumnPropNameInTable="RuleDllColumn" msprop:Generator_UserColumnName="RuleDll" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Activity" msprop:Generator_TableClassName="ActivityDataTable" msprop:Generator_TableVarName="tableActivity" msprop:Generator_TablePropName="Activity" msprop:Generator_RowDeletingName="ActivityRowDeleting" msprop:Generator_RowChangingName="ActivityRowChanging" msprop:Generator_RowEvHandlerName="ActivityRowChangeEventHandler" msprop:Generator_RowDeletedName="ActivityRowDeleted" msprop:Generator_UserTableName="Activity" msprop:Generator_RowChangedName="ActivityRowChanged" msprop:Generator_RowEvArgName="ActivityRowChangeEvent" msprop:Generator_RowClassName="ActivityRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" type="xs:string" />
              <xs:element name="ActivityClass" msprop:Generator_ColumnVarNameInTable="columnActivityClass" msprop:Generator_ColumnPropNameInRow="ActivityClass" msprop:Generator_ColumnPropNameInTable="ActivityClassColumn" msprop:Generator_UserColumnName="ActivityClass" type="xs:string" minOccurs="0" />
              <xs:element name="SwimlaneName" msprop:Generator_ColumnVarNameInTable="columnSwimlaneName" msprop:Generator_ColumnPropNameInRow="SwimlaneName" msprop:Generator_ColumnPropNameInTable="SwimlaneNameColumn" msprop:Generator_UserColumnName="SwimlaneName" type="xs:string" minOccurs="0" />
              <xs:element name="RuleName" msprop:Generator_ColumnVarNameInTable="columnRuleName" msprop:Generator_ColumnPropNameInRow="RuleName" msprop:Generator_ColumnPropNameInTable="RuleNameColumn" msprop:Generator_UserColumnName="RuleName" type="xs:string" minOccurs="0" />
              <xs:element name="DefinitionName" msprop:Generator_ColumnVarNameInTable="columnDefinitionName" msprop:Generator_ColumnPropNameInRow="DefinitionName" msprop:Generator_ColumnPropNameInTable="DefinitionNameColumn" msprop:Generator_UserColumnName="DefinitionName" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Transition" msprop:Generator_TableClassName="TransitionDataTable" msprop:Generator_TableVarName="tableTransition" msprop:Generator_TablePropName="Transition" msprop:Generator_RowDeletingName="TransitionRowDeleting" msprop:Generator_RowChangingName="TransitionRowChanging" msprop:Generator_RowEvHandlerName="TransitionRowChangeEventHandler" msprop:Generator_RowDeletedName="TransitionRowDeleted" msprop:Generator_UserTableName="Transition" msprop:Generator_RowChangedName="TransitionRowChanged" msprop:Generator_RowEvArgName="TransitionRowChangeEvent" msprop:Generator_RowClassName="TransitionRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="SourceActivityName" msprop:Generator_ColumnVarNameInTable="columnSourceActivityName" msprop:Generator_ColumnPropNameInRow="SourceActivityName" msprop:Generator_ColumnPropNameInTable="SourceActivityNameColumn" msprop:Generator_UserColumnName="SourceActivityName" type="xs:string" />
              <xs:element name="TargetActivityName" msprop:Generator_ColumnVarNameInTable="columnTargetActivityName" msprop:Generator_ColumnPropNameInRow="TargetActivityName" msprop:Generator_ColumnPropNameInTable="TargetActivityNameColumn" msprop:Generator_UserColumnName="TargetActivityName" type="xs:string" />
              <xs:element name="Constraint" msprop:Generator_ColumnVarNameInTable="columnConstraint" msprop:Generator_ColumnPropNameInRow="Constraint" msprop:Generator_ColumnPropNameInTable="ConstraintColumn" msprop:Generator_UserColumnName="Constraint" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ProcessDefinition" />
      <xs:field xpath="mstns:DefinitionName" />
    </xs:unique>
    <xs:unique name="Swimlane_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Swimlane" />
      <xs:field xpath="mstns:Name" />
    </xs:unique>
    <xs:unique name="Rule_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Rule" />
      <xs:field xpath="mstns:RuleName" />
    </xs:unique>
    <xs:unique name="Activity_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Activity" />
      <xs:field xpath="mstns:Name" />
    </xs:unique>
    <xs:unique name="Transition_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Transition" />
      <xs:field xpath="mstns:SourceActivityName" />
      <xs:field xpath="mstns:TargetActivityName" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="Rule_Swimlane" msdata:parent="Rule" msdata:child="Swimlane" msdata:parentkey="RuleName" msdata:childkey="RuleName" msprop:Generator_UserChildTable="Swimlane" msprop:Generator_ChildPropName="GetSwimlaneRows" msprop:Generator_UserRelationName="Rule_Swimlane" msprop:Generator_RelationVarName="relationRule_Swimlane" msprop:Generator_UserParentTable="Rule" msprop:Generator_ParentPropName="RuleRow" />
      <msdata:Relationship name="ProcessDefinition_Activity" msdata:parent="ProcessDefinition" msdata:child="Activity" msdata:parentkey="DefinitionName" msdata:childkey="DefinitionName" msprop:Generator_UserChildTable="Activity" msprop:Generator_ChildPropName="GetActivityRows" msprop:Generator_UserRelationName="ProcessDefinition_Activity" msprop:Generator_ParentPropName="ProcessDefinitionRow" msprop:Generator_RelationVarName="relationProcessDefinition_Activity" msprop:Generator_UserParentTable="ProcessDefinition" />
      <msdata:Relationship name="Swimlane_ProcessDefinition" msdata:parent="ProcessDefinition" msdata:child="Swimlane" msdata:parentkey="DefinitionName" msdata:childkey="DefinitionName" msprop:Generator_UserChildTable="Swimlane" msprop:Generator_ChildPropName="GetSwimlaneRows" msprop:Generator_UserRelationName="Swimlane_ProcessDefinition" msprop:Generator_ParentPropName="ProcessDefinitionRow" msprop:Generator_RelationVarName="relationSwimlane_ProcessDefinition" msprop:Generator_UserParentTable="ProcessDefinition" />
      <msdata:Relationship name="Swimlane_Activity" msdata:parent="Swimlane" msdata:child="Activity" msdata:parentkey="Name" msdata:childkey="SwimlaneName" msprop:Generator_UserChildTable="Activity" msprop:Generator_ChildPropName="GetActivityRows" msprop:Generator_UserRelationName="Swimlane_Activity" msprop:Generator_ParentPropName="SwimlaneRow" msprop:Generator_RelationVarName="relationSwimlane_Activity" msprop:Generator_UserParentTable="Swimlane" />
      <msdata:Relationship name="Rule_Activity" msdata:parent="Rule" msdata:child="Activity" msdata:parentkey="RuleName" msdata:childkey="RuleName" msprop:Generator_UserChildTable="Activity" msprop:Generator_ChildPropName="GetActivityRows" msprop:Generator_UserRelationName="Rule_Activity" msprop:Generator_ParentPropName="RuleRow" msprop:Generator_RelationVarName="relationRule_Activity" msprop:Generator_UserParentTable="Rule" />
      <msdata:Relationship name="Activity_Transition_Source" msdata:parent="Activity" msdata:child="Transition" msdata:parentkey="Name" msdata:childkey="SourceActivityName" msprop:Generator_UserChildTable="Transition" msprop:Generator_ChildPropName="GetTransitionRowsByActivity_Transition_Source" msprop:Generator_UserRelationName="Activity_Transition_Source" msprop:Generator_ParentPropName="ActivityRowByActivity_Transition_Source" msprop:Generator_RelationVarName="relationActivity_Transition_Source" msprop:Generator_UserParentTable="Activity" />
      <msdata:Relationship name="Activity_Transition_Target" msdata:parent="Activity" msdata:child="Transition" msdata:parentkey="Name" msdata:childkey="TargetActivityName" msprop:Generator_UserChildTable="Transition" msprop:Generator_ChildPropName="GetTransitionRowsByActivity_Transition_Target" msprop:Generator_UserRelationName="Activity_Transition_Target" msprop:Generator_ParentPropName="ActivityRowByActivity_Transition_Target" msprop:Generator_RelationVarName="relationActivity_Transition_Target" msprop:Generator_UserParentTable="Activity" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>